package br.com.searchpeople.activity;

import br.com.searchpeople.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;

public class IdentificationDataActivity extends Activity implements OnClickListener {
	
	private String phone;
	private String email;
	private Button button_identificationdata;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_identificationdata);
		
		
		button_identificationdata = (Button) findViewById(R.id.button_identificationdata);
		button_identificationdata.setOnClickListener(this);
	}

	@Override
	public void onClick(View arg0) {
		phone = ((EditText) findViewById(R.id.editview_phone)).getText().toString();
		email = ((EditText) findViewById(R.id.editview_email)).getText().toString();
		Intent intent = new Intent();
		
		intent.putExtra("phone", phone);
		intent.putExtra("email", email);
		setResult(RESULT_OK, intent);
		finish();
	}
	
}
